package model;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;

/**
 *
 * @author Dustin & Maik
 */
public class WebSiteGetter {
    static ArrayList<String> toFetchList = new ArrayList<String>();
    static ArrayList<String> fetchedList = new ArrayList<String>();
    static ArrayList<Thread> threads = new ArrayList<Thread>();
    static int maxSize;

    public static void main(String[] args) throws MalformedURLException, IOException, URISyntaxException {
        maxSize = (args.length > 0) ? Integer.parseInt(args[0]) : 50;
        
        URL url = new URL("http://nu.nl/");
        toFetchList.add(url.toString());
        
        WebPage w = new WebPage(url);
        w.start();
    }
}
